package cn.kbyue.ormdemo.service.impl;

import cn.kbyue.ormdemo.entity.Person;
import cn.kbyue.ormdemo.mapper.PersonMapper;
import cn.kbyue.ormdemo.service.IPersonService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kbyue
 * @since 2023-04-12
 */
@Service
public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> implements IPersonService {

    @Override
    public List<Person> selectListByWrapper(QueryWrapper<Person> wrapper) {
        return this.baseMapper.selectList(wrapper);
    }
}
